<!--The content below is only a placeholder and can be replaced.-->
<app-nav
></app-nav>
<div class="roster_info_container">
    <div class="sub_nav">
      <i class="line" [ngStyle]="{'backgroundColor': activeIndex==0?'#000':'#ccc'}"></i>
      <i class="line" [ngStyle]="{'backgroundColor': activeIndex==1?'#000':'#ccc'}"></i>
      <!--<i class="line" [ngStyle]="{'backgroundColor': activeIndex==2?'#000':'#ccc'}"></i>-->
    </div>
  <div class="roster_info_content" >
    <!--推送页面-->
    <div class="pushs_container" *ngIf="activeIndex==0&&pushs[0]">
      <div class="day_pushs" *ngFor="let pushArr of pushs">
        <div class="time">{{pushArr[0].CreateTime}}</div>
      <div class="push" *ngFor="let push of pushArr">
        <div class="content" [ngStyle]="{'backgroundColor': push.isTest?'#3FD1A9':'#60BFD7'}" (click)="goApp(push)">
          {{push.ProjectName}}
          <span>{{push.Code}}</span>
        </div>
      </div>
      </div>
    </div>
  <!--公告页面-->
    <div class="notices_container" *ngIf="activeIndex==1&&notices[0]">
        <div class="notice" *ngFor="let notice of notices">
          <div class="time">{{notice.PublicTime}}</div>
          <div class="content" [innerHTML]="notice.Content|toHTML"></div>
        </div>
    </div>
   <div class="no_container" *ngIf="activeIndex==1&&!notices[0]">
     <img src="../../assets/img/book.png" alt="" width="102px" height="126px">
     <div class="tip">暂时该班级还没有公告</div>
   </div>
    <div class="no_container" *ngIf="activeIndex==0&&!pushs[0]">
      <img src="../../assets/img/book.png" alt="" width="102px" height="126px">
      <div class="tip">暂时该班级还没有推送</div>
    </div>
  </div>
</div>
